package com.atmilan.quartz.sync.pull.buyer.mapper;

import org.apache.ibatis.annotations.Update;

import com.atmilan.quartz.model.entity.buyer.BuyerProductSkuMerged;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;


/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hupeng
 * @since 2020-04-27
 */
public interface BuyerProductSkuMergedMapper extends BaseMapper<BuyerProductSkuMerged> {
    
    @Update("truncate table buyer_product_sku_merged")
    void deleteAll();
    
    @Update("truncate table buyer_product_sku_merged_back")
    void deleteSkuMergedBack();
    
    @Update("insert into buyer_product_sku_merged_back select * from buyer_product_sku_merged")
    void copySkuMergedBack();

}
